/**
 * @date 4:16:38 PM
 * EducationAdminServiceImpl.java
 * Administrator
 * TODO
 */
package com.qs.education.bean.service.impl;

import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;

import com.qs.education.bean.beans.EducationAdminResponse;
import com.qs.education.bean.entity.EducationAdmin;
import com.qs.education.bean.service.BaseService;
import com.qs.education.bean.service.IEducationAdminService;

/**
 * @class EducationAdminServiceImpl
 * @author Brooks
 * @description 
 * @date Oct 17, 2018
 */
@Service
public class EducationAdminServiceImpl extends BaseService implements IEducationAdminService{

	/**
	 * @description 根据用户名和密码得到当前管理员
	 * @user Brooks
	 * @date Oct 17, 2018
	 * @return EducationAdminBean
	 */
	public EducationAdminResponse getEducationAdmin(String name, String password) {
		EducationAdmin educationAdmin = iEducationAdminDao.getEducationAdmin(name, password);
		EducationAdminResponse educationAdminBean = new EducationAdminResponse();
		BeanUtils.copyProperties(educationAdmin, educationAdminBean);
		return educationAdminBean;
	}

}
